import {seckList} from '../../../request/api'
const state={
    secklist:[]
}

const getters={
    getSevkList(state){
        return state.secklist
    }
}

const mutations={
    REQ_SECKLIST(state,payload){
        state.secklist=payload
    }
}

const actions={
    getSevkListAction({commit}){
        seckList().then(res=>{
            if(res.code==200){
                commit('REQ_SECKLIST',res.list)
            }
        })
    }
}

export default{
    state,
    getters,
    mutations,
    actions,
    namespaced:true
}